package com.trimps.steps.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.trimps.steps.pojo.Step;
import com.trimps.steps.pojo.TotalSteps;

public interface StepMapper {
    public List<Step> getSteps(@Param("currentPage") int currentPage, @Param("rowPerPage") int rowPerPage, @Param("map") HashMap<String, String> map);

    public int getStepCount(@Param("map") HashMap<String, String> map);

    public Step getLatestStepByUserId(@Param("userId") int userId);

    public int save(@Param("step") Step step);

    public List<TotalSteps> getTotalSteps(@Param("map") HashMap<String, String> map);

    public int delById(@Param("stepId") String stepId);
}
